FROM python:3.9

WORKDIR /app

# 安装系统依赖
RUN apt-get update && apt-get install -y \
    libgl1-mesa-glx \
    && rm -rf /var/lib/apt/lists/*

# 复制项目文件
COPY client/requirements.txt .
RUN pip install -r requirements.txt

COPY client/ .

# 创建必要的目录
RUN mkdir -p data models tasks logs

EXPOSE 8000 8080 8081

CMD ["python", "main.py"] 